package com.eascs.web.p2p.file;

import com.eascs.common.util.StringUtil;

public class FileTypeConstants {
	
	public static final String FILE_BID_CONTRACT = "BID_CONTRACT" ;  //标的合同
	
	public static final String FILE_BID_CARD = "BID_CARD" ;  //标的证件
	
	public static final String FILE_LOANER_IDC = "LOANER" ;  //借款人身份证附件
	
	public static final String FILE_REPAYER_IDC = "REPAYER" ;  //还款人身份证附件

	
	
	public static String getDatalistName(String datalistCode){
		String datalistName = "未知附件";
		if(StringUtil.isNotBlank(datalistCode)){
			if(datalistCode.equals(FileTypeConstants.FILE_BID_CONTRACT)){
				datalistName = "标的合同";
			}else if(datalistCode.equals(FileTypeConstants.FILE_BID_CARD)){
				datalistName = "标的证件";
			}else if(datalistCode.equals(FileTypeConstants.FILE_LOANER_IDC)){
				datalistName = "借款人身份证附件";
			}else if(datalistCode.equals(FileTypeConstants.FILE_REPAYER_IDC)){
				datalistName = "还款人身份证附件";
			}else{
				datalistName="其它";
			}
		}
		return datalistName;
	}
}
